package com.wangyk.jpaproject;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

//扫描注解，由于不在同一个项目下
@ComponentScan({"com.wangyk.jpaproject","com.wangyk.rabbitmqcommon"})
//扫描JPA的@Entity注解，由于不在同一个项目下
@EntityScan(basePackages = {"com.wangyk.jpaproject","com.wangyk.rabbitmqcommon"})
@SpringBootApplication
//注册Eureka的client端
@EnableDiscoveryClient
class JpaProjectApplication
{

    public static void main(String[] args)
    {
        SpringApplication.run(JpaProjectApplication.class, args);
    }

}

